package com.baichang.taoshunda.service;

import com.baichang.framework.model.Page;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/2/1 0001.
 */
public interface PaymentManagementService {
    /**
     *查询时间金钱
     * @param nowPage
     * @param pageSize
     * @return
     */
    Page queryTimeInfo(int nowPage, int pageSize);

    /**
     * 添加
     * @param months
     * @param monthsTwo
     * @param money
     * @param type   @return
     * @param remark
     * @param oldMoney
     * */
    long addSelectTime(Integer months, Integer monthsTwo, BigDecimal money, Integer type, String remark, BigDecimal oldMoney);

    /**
     * 修改
     * @param id
     * @param months
     * @param money
     * @param type
     * @param remark
     *@param oldMoney @return
     */
    int updateSelectTime(Integer id, Integer months, BigDecimal money, Integer type, String remark, BigDecimal oldMoney);

    /**
     *删除
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 查询选择分类
     * @param type
     * @return
     */
    List<Map<String,Object>> queryPaymentType(Integer type);
}
